package com.ruoyi.gcgl.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.gcgl.mapper.GcProjectGroupMapper;
import com.ruoyi.gcgl.domain.GcProjectGroup;
import com.ruoyi.gcgl.service.IGcProjectGroupService;
import com.ruoyi.common.core.text.Convert;

/**
 * 项目框架协议Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-19
 */
@Service
public class GcProjectGroupServiceImpl implements IGcProjectGroupService 
{
    @Autowired
    private GcProjectGroupMapper gcProjectGroupMapper;

    /**
     * 查询项目框架协议
     * 
     * @param id 项目框架协议主键
     * @return 项目框架协议
     */
    @Override
    public GcProjectGroup selectGcProjectGroupById(Long id)
    {
        return gcProjectGroupMapper.selectGcProjectGroupById(id);
    }

    /**
     * 查询项目框架协议列表
     * 
     * @param gcProjectGroup 项目框架协议
     * @return 项目框架协议
     */
    @Override
    public List<GcProjectGroup> selectGcProjectGroupList(GcProjectGroup gcProjectGroup)
    {
        return gcProjectGroupMapper.selectGcProjectGroupList(gcProjectGroup);
    }

    /**
     * 新增项目框架协议
     * 
     * @param gcProjectGroup 项目框架协议
     * @return 结果
     */
    @Override
    public int insertGcProjectGroup(GcProjectGroup gcProjectGroup)
    {
        return gcProjectGroupMapper.insertGcProjectGroup(gcProjectGroup);
    }

    /**
     * 修改项目框架协议
     * 
     * @param gcProjectGroup 项目框架协议
     * @return 结果
     */
    @Override
    public int updateGcProjectGroup(GcProjectGroup gcProjectGroup)
    {
        return gcProjectGroupMapper.updateGcProjectGroup(gcProjectGroup);
    }

    /**
     * 批量删除项目框架协议
     * 
     * @param ids 需要删除的项目框架协议主键
     * @return 结果
     */
    @Override
    public int deleteGcProjectGroupByIds(String ids)
    {
        return gcProjectGroupMapper.deleteGcProjectGroupByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除项目框架协议信息
     * 
     * @param id 项目框架协议主键
     * @return 结果
     */
    @Override
    public int deleteGcProjectGroupById(Long id)
    {
        return gcProjectGroupMapper.deleteGcProjectGroupById(id);
    }
}
